package com.ljf.code.web;

import com.ljf.code.enums.TextConversionTypeEnum;
import com.ljf.common.result.ResultModel;
import com.ljf.common.utils.EnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 代码模块 枚举类 控制器
 *
 * @author LJF
 * @since 2025-07-20
 */
@RestController
@RequestMapping("/enum/code")
@Api(value = "代码模块枚举类接口", tags = "代码模块枚举类接口")
public class CodeEnumController {

    @GetMapping("/text_conversion_type")
    @ApiOperation(value = "查询文本转换类型枚举")
    public ResultModel getTextConversionType() {
        return EnumUtil.getEnumVoResult(TextConversionTypeEnum.values());
    }

}